package b4.view.component.basic
{
	import org.aswing.ASColor;
	import org.aswing.BorderLayout;
	import org.aswing.JLabel;
	import org.aswing.JPanel;
	import org.aswing.border.LineBorder;
	
	public class TitledPanel extends JPanel
	{
		private var label:JLabel;
		private var pane:JPanel
		public function TitledPanel(title:String, width:int, height:int)
		{
			super();
			this.setLayout(new BorderLayout());		
			if (title != null || title != "")
			{
				label = new JLabel(title,null);
				this.append(label, BorderLayout.NORTH);
				label.setPreferredWidth(width);
				label.setPreferredHeight(20);
			}
			
			this.setPreferredWidth(width);
			this.setPreferredHeight(height);
			this.setBorder(new LineBorder(null,ASColor.BLACK));
		}
	}
}
